local transform;
local gameObject;
score=0;

PlayerPanel={};

local this = PlayerPanel;

function PlayerPanel.Awake( obj )
	gameObject=obj;
	transform=obj.transform;
	this.InitPanel();
end

function PlayerPanel.InitPanel( )
	this.text=transform:Find('ScoreTxt').gameObject;
	this.txt=this.text:GetComponent('Text');
	this.btnObj=transform:Find('AddBtn').gameObject;
end

function PlayerPanel.AddScore()
	score=score+2;
	this.txt.text=score;
end